1.fear resulting from the awareness of danger
2.a device that signals the occurrence of some undesirable event
3.an automatic signal (usually a sound) warning of danger
4.a clock that wakes sleeper at preset time
1.fill with apprehension or alarm; cause to be unpleasantly surprised;
I was horrified at the thought of being late for my interview
2.warn or arouse to a sense of danger or call to a state of preparedness;
The empty house alarmed him
Linux C alarm函數(shù) alarm也稱為鬧鐘函數(shù),它可以在進(jìn)程中設(shè)置一個定時器,當(dāng)定時器指定的時間到時,它向進(jìn)程發(fā)送SIGALRM信號。要注意的是,一個進(jìn)程只能有一個鬧鐘時間,如果在調(diào)用alarm之前已設(shè)置過鬧鐘時間,則任何以前的鬧鐘時間都被新值所代替。需要注意的是,經(jīng)過指定的秒數(shù)后,信號由內(nèi)核產(chǎn)生,由于進(jìn)程調(diào)度的延遲,所以進(jìn)程得到控制從而能夠處理該信號還需要一些時間。 如果有以前為進(jìn)程登記的尚未超時的鬧鐘時鐘,而且本